<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>工资支付</title>
    <!-- 引入 WeUI -->
    <link rel="stylesheet" href="/web-finance/style/weui.min.css">
    <link rel="stylesheet" href="/web-finance/example/example.css">
    <script src="/web-finance/example/zepto.min.js"></script>
    <style type="text/css">object,embed{                -webkit-animation-duration:.001s;-webkit-animation-name:playerInserted;                -ms-animation-duration:.001s;-ms-animation-name:playerInserted;                -o-animation-duration:.001s;-o-animation-name:playerInserted;                animation-duration:.001s;animation-name:playerInserted;}                @-webkit-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-ms-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @-o-keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}                @keyframes playerInserted{from{opacity:0.99;}to{opacity:1;}}</style>
</head>
<body ontouchstart>
<div class="page__bd">
<form action="" method="post">
    <input id = "accountnumber" name="accountnumber" type="hidden" th:value="${accountnumber}" />
    <input id = "projectnumber" name="projectnumber" type="hidden" value="" />
    <input id = "projectname" name="projectname" type="hidden" value="" />
		<div class="weui-cells" th:each="lm : ${projectlist}">
            <a class="weui-cell weui-cell_access" href="javascript:;" th:id="'btn_'+${lmStat.index}" th:onclick = "'javascript:goNext(\''+${lm.projectNumber}+'\', \''+${lm.projectName}+'\')'">
                <div class="weui-cell__bd">
                    <p class = "pj_title" th:text="${lm.projectName}" >cell standard</p>
                    <p th:text="${lm.projectNumber}" >cell standard</p>
                </div>
                <div class="weui-cell__ft"></div>
            </a>
        </div>
        </form>
        </div>
        
        <div class="page msg_warn js_show" th:if="${not #strings.isEmpty(msg)}">
		<div class="weui-msg">
			<div class="weui-msg__icon-area">
				<i class="weui-icon-warn weui-icon_msg"></i>
			</div>
			<div class="weui-msg__text-area">
				<h2 class="weui-msg__title" data-th-text="${msg}">操作失败</h2>
				<p class="weui-msg__desc">
					如有问题请联系管理员。<a href="tel:057688816988">拨打电话</a>
				</p>
			</div>
			<div class="weui-msg__opr-area">
				<p class="weui-btn-area">
					<a href="javascript:history.back();"
						class="weui-btn weui-btn_primary">返回</a>
					<!-- <a href="javascript:history.back();" class="weui-btn weui-btn_default">辅助操作</a>  -->
				</p>
			</div>
			<div class="weui-msg__extra-area">
				<div class="weui-footer">
					<p class="weui-footer__links">
						<a href="javascript:void(0);" class="weui-footer__link">www.fyg.cn</a>
					</p>
					<p class="weui-footer__text">Copyright © 2008-2016 weui.io</p>
				</div>
			</div>
		</div>
	</div>
</body>

<script type="text/javascript">
	function goNext(a, b){
		var input = $("#projectnumber");
		var input2 = $("#projectname");
		var form = $("form");
		input[0].value = a;
		input2[0].value = b;
		form.attr("action","/web-finance/salarydetail");
		form.submit();
	}
</script>
</html>